const WSClient = require('./ws-client');

const wsClient = new WSClient('ws://localhost:9802/mcp/ws');

wsClient.setOnOpen(() => {
    wsClient.send({
        action: 'listTools',
        payload: {}
    })

    // wsClient.send({
    //     action: 'chat',
    //     payload: {
    //         prompt: '查询姓名为"林俊杰"的用户信息'
    //     }
    // })
})

wsClient.setOnMessage((msg) => {
    console.log('服务端消息', msg)
})
